package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouh
 * @since 2017-10-16
 */
@TableName("biz_product_flow")
public class ProductFlow extends Model<ProductFlow> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * 部门id
	 */
	private Integer deptid;

    /**
     * 产品id
     */
	private Integer pid;

	/**
	 * 产品型号
	 */
	private String productModel;

    /**
     * 操作类型[1-入库  2-售出  3-出库]
     */
	@TableField("biz_type")
	private Integer bizType;
    /**
     * 备注
     */
	private String remarks;
    /**
     * 操作日志
     */
	@TableField("create_time")
	private Date createTime;

	/**
	 * 数量
	 * @return
	 */
	private Integer amount;




	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getBizType() {
		return bizType;
	}

	public void setBizType(Integer bizType) {
		this.bizType = bizType;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public String getProductModel() {
		return productModel;
	}

	public void setProductModel(String productModel) {
		this.productModel = productModel;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProductFlow{" +
			"id=" + id +
			", pid=" + pid +
			", bizType=" + bizType +
			", remarks=" + remarks +
			", createTime=" + createTime +
			"}";
	}
}
